package com.park.service.impl;

import com.park.bean.Employee;
import com.park.dao.IEmployeeDao;
import com.park.service.IEmployeeService;
import com.park.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements IEmployeeService {
    @Autowired
    IEmployeeDao dao;
    @Override
    public List<Employee> getEmployee(Employee employee, Page page) {
        return dao.getEmployee(employee,page);
    }

    @Override
    public int getCount(Employee employee) {
        return dao.getCount(employee);
    }

    @Override
    public int postEmployee(Employee employee) {
        return dao.postEmployee(employee);
    }

    @Override
    public int delEmployee(int id) {
        return dao.delEmployee(id);
    }

    @Override
    public int editEmployee(Employee employee) {
        return dao.editEmployee(employee);
    }
}
